From: Johan Hedberg Date: Fri, 11 Nov 2011 14:18:54 +0000 (+0200) Subject: Bluetooth: Add missing cmd_complete for mgmt_load_link_keys X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~12151^2~44^2~71^2~71 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0e5f875a8f4fa78edf5762d6d0a9843e1d9ae85e;p=linux-4.9.git Bluetooth: Add missing cmd_complete for mgmt_load_link_keys The command complete event was completely missing for this command. Signed-off-by: Johan Hedberg Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index cb3af4e4f959..e4a353cfa97d 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -1052,6 +1052,8 @@ static int load_link_keys(struct sock *sk, u16 index, unsigned char *data, key->pin_len); } + cmd_complete(sk, index, MGMT_OP_LOAD_LINK_KEYS, NULL, 0); + hci_dev_unlock_bh(hdev); hci_dev_put(hdev);